<template>

<div class="search-author">
  <!-- <br> -->
  <el-card style="style=margin-top: 150px; width: 60%; padding: 20px;">
    <el-form @submit.native.prevent="goSearch">
    <div>
      <div style="text-align:center">
        <!-- <div class="title">学者查询</div> -->
        <!-- <div class="title1"> -->
        <h1 id="title">学者查询</h1>
        <!-- </div> -->
        <div class="input-box">
          <!-- <h2>姓名</h2> -->
          <el-input placeholder="请输入学者名"
                    v-model="searchValue"
                    class="input-with-select"
                    @keyup.enter.native="goSearch"
                    style="width: 750px; font-size: 17px">
            <!-- <el-select v-model="select" slot="prepend" placeholder="检索依据" style="width: 130px"> -->
              <!-- <el-option
                  :key="options[0].value"
                  :label="options[0].label"
                  :value="options[0].value">
              </el-option> -->
            <!-- </el-select> -->
            <el-button slot="append" icon="el-icon-search" @click="goSearch"></el-button>
          </el-input>
        </div>
      </div>
    </div>
</el-form>
</el-card>
</div>
</template>

<script>
import PageHeader from "../../components/PageHeader";

export default {
  name: "searchAut",
  components: {PageHeader},
  data() {
    return {
      searchValue: '',
      select: 'name',
      options: [{
        value: 'name',
        label: '姓名'
      }],
    }
  },
  methods: {
    goSearch() {
      if (this.searchValue === '')
        return;
      let routeUrl = this.$router.resolve({
        path: '/authorRes?' + this.select + "=" + this.searchValue,
      });
      window.open(routeUrl .href, "_self");
    }
  }
}
</script>

<style scoped>

#title{
  /* font-family:'Noto Serif SC', serif; */
  font-size: 36px;
  font-weight:400;
  margin-top: 0;
  /* position: relative;
  margin: auto;
  left:0% */
}

.title1{
  position: relative;
  margin: auto;
  left: 30%;
  right: 40%;
}

.search-author {
  display: flex;
  justify-content: center;
  font-family: source-han-sans-simplified-c, sans-serif;
  margin-top: 30px;
}

.search-author .input-box-body {
  position: relative;
  margin:auto;
  left: 12%;
  right:12%;
  text-align: left;
  font-size: 12px;
}

.search-author .background {
  position:absolute;
  width:100%;
  height:100%;
  left:0;
  z-index:-1;
  object-fit: cover;
}

.search-author .input-box {
  margin-top: 40px;
  /* margin-left: -350px; */
}
.search-author .input-box >>> .el-input.is-active .el-input__inner, .el-input__inner:focus {
  border: 5px solid #409EFF;
}
.search-author .input-box >>> .el-input__inner {
  height: 50px;
}
.search-author .input-box >>> .el-input-group__append {
  background-color: #409EFF;
  color: white;
  vertical-align: middle;
  display: table-cell;
  position: relative;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 0 20px;
  width: 1px;
  white-space: nowrap;
}
.search-author .input-box >>> .el-input-group__append:hover {
  background-color: #52a9ff;
}
.search-author .input-box >>> .el-input-group--prepend {
  border-radius: 6px 0 0 6px;
}
.search-author .input-box-body .input-box button {
  color: white;
}

.search-author .title {
  font-family: "Asap SemiBold",tahoma,arial,"Hiragino Sans GB",\5b8b\4f53, sans-serif;
  font-size: 60px;
  margin-top: 200px;
  color: #2f2e2e;
  font-weight: 600;
}


</style>